package com.huanletao.spring.ioc;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * description: Main <br>
 * date: 2022/7/1 15:37 <br>
 * author: 踏雪无痕 <br>
 * version: 1.0 <br>
 */

public class Main {


    public MyInstantiationAwareBeanPostProcessor myInstantiationAwareBeanPostProcessor(){
        return new MyInstantiationAwareBeanPostProcessor();
    }
//    @Bean
//    public Person person(){
//        return new Person();
//    }

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
        applicationContext.register(Config.class);

        applicationContext.refresh();

     }
}
